{% extends 'common/basic_list.html' %}
{% load toolbox_tags %}
{% load table_tags %}
{% block list_title %}
    周期管理(Crontab)
{% endblock %}
{% block subtitle %}
    <small>
        以Crontab的格式定义Celery的计划任务调度周期，
        你可以在<a href="/frontend/celery_manager/preriodic_task_list/">这里</a>把周期和系统计划任务进行关联

    </small>
{% endblock %}
{% block list_filter %}
    <div class="col-sm-4">
        <div class="input-group">
            {% toolbox_add 'crontab_schedule_add/' %}
            &nbsp;
            {% toolbox_batch_delete %}
        </div>
    </div>
{% endblock %}

{% block list_content %}
    <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
        {% table_head "分@minute,小时@hour,周@day_of_week,月@day_of_month,年@month_of_year" order_by ordering %}
        <tbody>
        {% for o in result_list %}
            {% table o.id 'crontab_schedule_edit/' o.id o.minute o.hour o.day_of_week o.day_of_month o.month_of_year %}
        {% endfor %}
        </tbody>
    </table>
{% endblock %}